import request from '@/utils/request';
// 销售选单 订单管理 获取列表
export function getSaleList(query) {
  return request({
    url: '/heart/SaleOrder/list',
    method: 'get',
    params: query
  })
}
// 销售订单 list 获取列表
export function getSaleOrderList(query) {
  return request({
    url: '/heart/SaleOrder/listSaleOrderDetail',
    method: 'get',
    params: query
  })

}
// 订单管理 新增列表
export function addSaleList(data) {
  return request({
    url: '/heart/SaleOrder',
    method: 'post',
    data
  })
}
// 订单管理 选单销售合同查询物料明细
export function getContractSaleList(data) {
  return request({
    url: '/heart/ContractSale/queryMaterail',
    method: 'get',
    params: data
  })
}
// 销售订单 详情
export function getSaleDetail(id) {
  return request({
    url: '/heart/SaleOrder/' + id,
    method: 'get'
  })
}
// 销售报价单 列表
export function getQuotationList(query) {
  return request({
    url: '/heart/quotation/list',
    method: 'get',
    params: query
  })
}
// 销售报价 新增
export function addQuotationList(data) {
  return request({
    url: '/heart/quotation',
    method: 'post',
    data
  })
}
// 销售报价 详情
export function getQuotationDetail(id) {
  return request({
    url: '/heart/quotation/' + id,
    method: 'get'
  })
}
// 销售报价 删除
export function deleteQuotation(query) {
  return request({
    url: '/heart/quotation/' + query,
    method: 'delete',
  })
}
// 销售报价 修改
export function editQuotation(data) {
  return request({
    url: "/heart/quotation",
    method: "put",
    data,
  });
}
// 销售价目单 列表
export function getPriceList(query) {
  return request({
    url: '/heart/markenPrice/list',
    method: 'get',
    params: query
  })
}
// 销售价目 新增
export function addPriceList(data) {
  return request({
    url: '/heart/markenPrice',
    method: 'post',
    data
  })
}
